home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 August (Alt) / CHIP 2005-08.1.iso / program / guvenlik / syslinux-3.07.exe / com32 / lib / fputs.c < prev    next >
Encoding:
C/C++ Source or Header  |  2004-11-10  |  285 b   |  16 lines

  1. /*
  2.  * fputs.c
  3.  *
  4.  * This isn't quite fputs() in the stdio sense, since we don't
  5.  * have stdio, but it takes a file descriptor argument instead
  6.  * of the FILE *.
  7.  */
  8.  
  9. #include <stdio.h>
  10. #include <string.h>
  11.  
  12. int fputs(const char *s, FILE *file)
  13. {
  14.   return _fwrite(s, strlen(s), file);
  15. }
  16.